/**
 * \file ErrorType.h
 *
 * Asteriskos Compiler 1
 * Written 2010-2011, by Anthony Berlin and Alexander Carlqvist
 *
 * This file is part of ICC.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef ERROR_TYPE_H
#define ERROR_TYPE_H

enum ErrorType
{
    ERR_INVALID_TOKEN,
    ERR_UNTERMINATED_BRACKET,
    ERR_OPENING_BRACKET_MISSING,
    ERR_EXPECTED_A_BEFORE_B,
    ERR_EXPECTED,
    ERR_INVALID_LVALUE,
    ERR_INVALID,
    ERR_DUPLICATE_A,
    ERR_A_AND_B_SPECIFIED_TOGETHER,
    ERR_A_SPECIFIED_FOR_PARAM_IN_PARAM_DECL_LIST,
    ERR_A_NOT_DECLARED,
    ERR_RETURN_IN_GLOBAL_SCOPE,
    ERR_ARGS_MISMATCH_FOR_FUNCTION,
    ERR_INVALID_CONVERSION_FROM_A_TO_B,
    ERR_MAIN_NOT_GLOBAL,
    ERR_UNINIT_CONST_VAR,
    ERR_REDEF_CONST_VAR,
    ERR_STATIC_DECL_IN_READONLY_STRUCTURE,
    ERR_ASSIGNMENT_OF_NON_LOCAL_VAR_IN_READONLY_STRUCTURE,
    ERR_MAIN_HAS_PARAMS,
    ERR_NO_RETURN_IN_FUNC,
    ERR_NON_VOID_FUNC_OF_TYPE_A_MISSING_RETURN_EXPR,
    ERR_FUNCTION_A_WAS_DECLARED_IN_MODULE_B,
    ERR_IDENT_A_MUST_BE_MODULE,
    ERR_CANNOT_DEFINE_EXTERNAL_FUNCTION_A,
    ERR_DUPLICATE_DEFINITION_OF_FUNCTION_A,
    ERR_STRAY_A_STATEMENT
};

#endif // ERROR_TYPE_H
